import request from '@/utils/request'

// 查询盘点规则列表
export function listCcInventoryRules(query) {
  return request({
    url: '/business/CcInventoryRules/list',
    method: 'get',
    params: query
  })
}

// 查询盘点规则详细
export function getCcInventoryRules(id) {
  return request({
    url: '/business/CcInventoryRules/' + id,
    method: 'get'
  })
}

// 新增盘点规则
export function addCcInventoryRules(data) {
  return request({
    url: '/business/CcInventoryRules',
    method: 'post',
    data: data
  })
}

// 修改盘点规则
export function updateCcInventoryRules(data) {
  return request({
    url: '/business/CcInventoryRules',
    method: 'put',
    data: data
  })
}

// 删除盘点规则
export function delCcInventoryRules(id) {
  return request({
    url: '/business/CcInventoryRules/' + id,
    method: 'delete'
  })
}
